package com.nit.week12.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class Book implements Serializable {
    private Integer bookId;
    private Integer typeId;
    private String bookName;
    private BigDecimal bookPrice;
    private String publishing;
    private Integer repository;
    private String bookAuthor;
    private String isbn;

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public BigDecimal getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(BigDecimal bookPrice) {
        this.bookPrice = bookPrice;
    }

    public String getPublishing() {
        return publishing;
    }

    public void setPublishing(String publishing) {
        this.publishing = publishing;
    }

    public Integer getRepository() {
        return repository;
    }

    public void setRepository(Integer repository) {
        this.repository = repository;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    @Override
    public String toString() {
        return "Book [ID=" + bookId + ", 书名=" + bookName + ", 价格=" + bookPrice + ", 出版社=" + publishing + ", 库存=" + repository + ", 作者=" + bookAuthor + ", ISBN=" + isbn + "]";
    }
}
